package com.miao.im.support.exception;

import com.miao.im.common.BizCode;
import lombok.Getter;

/**
 * @description： 权限异常
 *
 */
@Getter
public class AuthenticationException extends RuntimeException {
    private int code;

    public AuthenticationException(String msg) {
        super(msg.replace("{}", ""));
        this.code = BizCode.UNAUTHORIZED;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }

}
